# -*- coding: utf-8 -*-
# @Time    : 2022/10/12 23:16
# @Author  : 修远
# @File    : ActHistory.py
# @Comment : 
from app.app import db
from datetime import datetime


class ActHistory(db.Model):
    __tablename__ = 'act_history'
    id = db.Column(db.Integer, primary_key=True)
    object_id = db.Column(db.String(255), nullable=False)
    object_act = db.Column(db.String(255), nullable=False)
    remake = db.Column(db.String(255), unique=True, nullable=False)
    create_date = db.Column(db.DateTime, default=datetime.now())
    update_data = db.Column(db.DateTime, default=datetime.now())

    __table_args__ = {
        "useexisting": True,
        "mysql_charset": "utf8"  # 重要点设置创建数据库的时候的字符集
    }
